package com.dyzx.hbb.modules.sys.service;

import com.dyzx.hbb.modules.sys.entity.SysRoleMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_role_menu(创建角色分配菜单表)】的数据库操作Service
* @createDate 2025-04-14 13:30:05
*/
public interface SysRoleMenuService extends IService<SysRoleMenu> {

    boolean assignMenus(Long roleId, List<Long> menuIds);

    List<Long> getMenuIdsByRoleId(Long roleId);
    List<Long> getMenuIdsByRoleIds(List<Long> roleIds);
    List<Long> getMenuIdsByUserId(Long userId);

    boolean deleteRoleMenus(Long roleId, List<Long> menuIds);
}
